#ifndef ADS7870_SPI_H
#define ADS7870_SPI_H
#include <linux/spi/spi.h>
//#include <mach/mcspi.h>
#include <linux/input.h>

struct spi_result
{
  u16 fejl;
  u16 temperatur;
  u16 batteri;
  u16 stroem;
};

int psoc_write(struct spi_device *spi);

struct spi_result psoc_read(void);
u16 psoc_read_once(struct spi_device *spi);
int psoc_spi_init(void);
int psoc_spi_exit(void);

#endif

